package com.example.userspringboot.service;

import com.example.userspringboot.entity.DrugDetails;
import com.example.userspringboot.mapper.DrugDetailsMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrugDetailsService {

    @Resource
    DrugDetailsMapper drugDetailsMapper;

    public List<DrugDetails> selectDetailsByClassificationName(String classificationName) {
        return drugDetailsMapper.selectDetailsByClassificationName(classificationName);
    }
}
